package com.elsa.smart_buffet.context;

/**
 * @ClassName : UserContext  //类名
 * @Author : elsa //作者
 */

public class UserContext {

    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static String currentUserName() {
        return threadLocal.get();
    }

    public static void setCurrentUserName(String currentUserName) {
        threadLocal.set(currentUserName);
    }

}
